package com.thy;

import com.hospital.common.config.FeignConfig;
import com.hospital.common.config.GlobalHandlerConfig;
import com.hospital.common.config.WebConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling // 启用定时任务
@Import({GlobalHandlerConfig.class, FeignConfig.class, WebConfig.class})
@MapperScan({"com.thy.mapper"})
@EnableFeignClients
public class AuditApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuditApplication.class, args);
    }
}